#!/usr/bin/env bash

profile=test
port=$1
if [ "X$port" == "X" ]
then
    port=8090
fi



sh stop.sh
command="nohup java -jar -Dspring.profiles.active=$profile -Dserver.port=$port spring-cloud-consumer-1.0-SNAPSHOT.jar >consumer.log &"
echo command=$command
eval $command
exit 0